home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
DBCTRLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
45KB
|
1,236 lines
//----------------------------------------------------------------------------
// DBCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: DBCtrls.pas
//----------------------------------------------------------------------------
#ifndef DBCtrlsHPP
#define DBCtrlsHPP
//----------------------------------------------------------------------------
#include <Buttons.hpp>
#include <Mask.hpp>
#include <DBTables.hpp>
#include <DB.hpp>
#include <ExtCtrls.hpp>
#include <StdCtrls.hpp>
#include <Menus.hpp>
#include <Graphics.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Dbctrls
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TPaintControl;
class __declspec(pascalimplementation) TPaintControl : public System::TObject
{
typedef System::TObject inherited;
private:
Controls::TWinControl* FOwner;
System::AnsiString FClassName;
HWND FHandle;
void *FObjectInstance;
void *FDefWindowProc;
bool FCtl3dButton;
HWND __fastcall GetHandle(void);
void __fastcall SetCtl3DButton(bool Value);
void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall TPaintControl(Controls::TWinControl* Owner, const System::AnsiString ClassName);
__fastcall virtual ~TPaintControl(void);
void __fastcall DestroyHandle(void);
__property bool Ctl3DButton = {read=FCtl3dButton, write=SetCtl3DButton, nodefault};
__property HWND Handle = {read=GetHandle, nodefault};
};
class __declspec(delphiclass) TDBEdit;
class __declspec(pascalimplementation) TDBEdit : public Mask::TCustomMaskEdit
{
typedef Mask::TCustomMaskEdit inherited;
private:
Dbtables::TFieldDataLink* FDataLink;
Controls::TControlCanvas* FCanvas;
TAlignment FAlignment;
bool FFocused;
void __fastcall DataChange(System::TObject* Sender);
void __fastcall EditingChange(System::TObject* Sender);
System::AnsiString __fastcall GetDataField(void);
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
POINT __fastcall GetTextMargins(void);
void __fastcall SetDataField(const System::AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetFocused(bool Value);
HIDESBASE void __fastcall SetReadOnly(bool Value);
void __fastcall UpdateData(System::TObject* Sender);
HIDESBASE MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
virtual void __fastcall Change(void);
virtual bool __fastcall EditCanModify(void);
virtual void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall KeyPress(char &Key);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall Reset(void);
public:
__fastcall virtual TDBEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TDBEdit(void);
__property Db::TField* Field = {read=GetField, nodefault};
__published:
__property AutoSelect ;
__property AutoSize ;
__property BorderStyle ;
__property CharCase ;
__property Color ;
__property Ctl3D ;
__property System::AnsiString DataField = {read=GetDataField, write=SetDataField, nodefault};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource, nodefault};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property MaxLength ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PasswordChar ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnChange ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TDBEdit(HWND ParentWindow) : Mask::TCustomMaskEdit(ParentWindow
) { }
};
class __declspec(delphiclass) TDBText;
class __declspec(pascalimplementation) TDBText : public Stdctrls::TCustomLabel
{
typedef Stdctrls::TCustomLabel inherited;
private:
Dbtables::TFieldDataLink* FDataLink;
void __fastcall DataChange(System::TObject* Sender);
System::AnsiString __fastcall GetDataField(void);
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
System::AnsiString __fastcall GetFieldText(void);
void __fastcall SetDataField(const System::AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
virtual System::AnsiString __fastcall GetLabelText(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall SetAutoSize(bool Value);
public:
__fastcall virtual TDBText(Classes::TComponent* AOwner);
__fastcall virtual ~TDBText(void);
__property Db::TField* Field = {read=GetField, nodefault};
__published:
__property Align ;
__property Alignment ;
__property AutoSize ;
__property Color ;
__property System::AnsiString DataField = {read=GetDataField, write=SetDataField, nodefault};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource, nodefault};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property Transparent ;
__property ShowHint ;
__property Visible ;
__property WordWrap ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
};
class __declspec(delphiclass) TDBCheckBox;
class __declspec(pascalimplementation) TDBCheckBox : public Stdctrls::TCustomCheckBox
{
typedef Stdctrls::TCustomCheckBox inherited;
private:
Dbtables::TFieldDataLink* FDataLink;
System::AnsiString FValueCheck;
System::AnsiString FValueUncheck;
TPaintControl* FPaintControl;
void __fastcall DataChange(System::TObject* Sender);
System::AnsiString __fastcall GetDataField(void);
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
Stdctrls::TCheckBoxState __fastcall GetFieldState(void);
bool __fastcall GetReadOnly(void);
void __fastcall SetDataField(const System::AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall SetValueCheck(const System::AnsiString Value);
void __fastcall SetValueUncheck(const System::AnsiString Value);
void __fastcall UpdateData(System::TObject* Sender);
bool __fastcall ValueMatch(const System::AnsiString ValueList, const System::AnsiString Value);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
virtual void __fastcall Toggle(void);
vir